﻿#region Copyright Notice
// This file is part of GestionPedago.
// <description>
// Copyright (C) 2012 ENI Ecole Informatique
// 
// GestionPedago is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// <program> is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
#endregion

using System;
using System.Collections.Generic;
using System.Text;
using GestionPedago.Services.Framework;
using System.ComponentModel;

namespace GestionPedago.Services.ES.Modele
{
    /// <summary>
    /// Classe d'ES Stagiaire
    /// </summary>
    public class StagiaireES : AbstractES, INotifyPropertyChanged
    {
        public int CodeStagiaire { get; set; }
        public string Civilite { get; set; }
        public string Nom { get; set; }
        public string Prenom { get; set; }
        public string Adresse1 { get; set; }
        public string Adresse2 { get; set; }
        public string Adresse3 { get; set; }
        public string Codepostal { get; set; }
        public string Ville { get; set; }
        public string TelephoneFixe { get; set; }
        public string TelephonePortable { get; set; }
        public string Email { get; set; }
        public DateTime? DateNaissance { get; set; }
        public string CodeRegion { get; set; }
        public string CodeNationalite { get; set; }
        public string CodeOrigineMedia { get; set; }
        public DateTime? DateDernierEnvoiDoc { get; set; }
        public DateTime? DateCreation { get; set; }
        public string Repertoire { get; set; }
        public bool Permis { get; set; }
        private string photoPath;
        public string PhotoPath {
            get { return photoPath; }
            set {
                photoPath = value;
                RaisePropertyChanged("PhotoPath");
            }
        }
        public string Photo { get; set; }
        public bool EnvoiDocEnCours { get; set; }
        public string Historique { get; set; }
        public List<EvenementES> ListeEvenement { get; set; }
        public List<EvenementPedagogiqueES> ListeEvenementPedagogique { get; set; }
        public List<PlanningIndividuelFormationES> ListePlanningIndividuelFormation { get; set; }
        public ProfilStagiaireES ProfilStagiaire { get; set; }
        public List<StagiaireParEntrepriseES> ListeStagiaireParEntreprise { get; set; }
        public RegionES Region { get; set; }
        public List<PlanningIndividuelDetailES> ListeAllPlanningIndividuelDetail { get; set; }

        /// <summary>
        /// Constructeur
        /// </summary>
        public StagiaireES() { }

        public event PropertyChangedEventHandler PropertyChanged;

        /// <summary>
        /// D�clenche l'�venement PropertyChanged pour la propri�t� dont le nom est pass� en param�tre.
        /// </summary>
        /// <param name="propertyName">Nom de la propri�t�</param>
        protected void RaisePropertyChanged(string propertyName) {
            if(this.PropertyChanged != null) {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
